'''
#Coding: utf-8
#Project: agro-traceability
#Author: rtf
#Time: 2020-08-17 15:57:31
#FileName: logout.py
#Softwar: PyCharm
'''


from trump.utils import ok
from trump.utils import get_context, set_context


async def ls(app, request):
    set_context(request, "need_update_session", True)
    request.ctx.session.clear()
    return ok(return_msg="退出成功！")

